package com.j170502.cateringmange.service;

import com.j170502.cateringmange.dao.UserMapper;
import com.j170502.cateringmange.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    public String [] findAllName(){
        return userMapper.findAll();
    }
    public User login(String userName,String userPwd){
        return userMapper.login(userName,userPwd);
    }
    public List<User> findAlls(){
        return userMapper.findAlls();
    }
}
